package com.wpx.log.core.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.wpx.log.core.handler.desc.EmptyDescPolicy;
import com.wpx.log.core.handler.desc.ILogDescPolicy;
import com.wpx.log.core.module.DefaultLog;


/**
 * 	功能描述：系统日志注解
 * @author 韦鹏香
 * @date 2021/05/02
 */
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface OpLog {

	String value();
	
	int type() default DefaultLog.TYPE_QUERY;
	
	String oldObj() default "";
	
	String newObj() default "";
	
	String group() default "root";
	
	Class<? extends ILogDescPolicy> descPolicy() default EmptyDescPolicy.class;
}
